﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace kongjian18
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class chuxian10kv : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        public chuxian10kv()
        {
            InitializeComponent();
        }
        private void chuxian10kv_Paint(object sender, PaintEventArgs e)
        {

            Pen a = new Pen(CtrColor, 1);
            SolidBrush b1 = new SolidBrush(CtrColor);

            e.Graphics.DrawEllipse(a, x * 2 / 3, y, x * 2 / 3, x * 2 / 3);
            e.Graphics.DrawLine(a, x * 4 / 3, y + x / 3, x * 2, y + x / 3);
            e.Graphics.DrawLine(a, x * 7 / 4, y + x / 6, x * 6 / 4, y + x / 2);
            e.Graphics.DrawLine(a, x * 15 / 8, y + x / 6, x * 13 / 8, y + x / 2);

            e.Graphics.FillPolygon(b1, new Point[3]{new Point (x*2/3,y/2),
                                               new Point(x*4/3,y/2),
                                               new Point(x,y)});
            e.Graphics.DrawLine(a, x, 0, x, y * 2);
        }

        private void chuxian10kv_Resize(object sender, EventArgs e)
        {
            this.x = this.Width / 2;
            this.y = this.Height / 2;
            //this.Refresh();

        }

        private void chuxian10kv_Load(object sender, EventArgs e)
        {
            chuxian10kv_Resize(sender, e);
        }







    }
}